<template>
  <div @click="ShowFun">
    <van-icon v-if="!isShow" name="eye-o" />
    <van-icon v-else name="closed-eye" />
  </div>
</template>

<script>
export default {
  data() {
    return {
      isShow: false
    };
  },
  methods: {
    ShowFun() {
      this.isShow = !this.isShow;
      this.$emit("func", this.isShow);
    }
  }
};
</script>

<style scoped>
</style>